package com.design.AdapterMode.AdapterDemo;

import com.design.AdapterMode.demo.Filter1;
import com.design.AdapterMode.demo.Word;

public class Adapter1 implements IFilterService{

    private Filter1 filter1 = new Filter1();

    @Override
    public String filter(String word) {
        final Word build = Word.builder().word(word).replace("*").build();
        return filter1.filter(build);
    }
}
